<?php


class UrlManager extends CUrlManager{
 
    /*
    * rewriten behavior
    */
    public function createUrl($route, $params = array(), $ampersand = '&') {
        //because if you wont to define language manually 
        if(empty($params['lang'])){
          $params['lang'] = Controller::processUrl();
        }
        return parent::createUrl($route, $params, $ampersand);
    }
 
 
}